package de.mhu.mandalaui;

import de.mhu.mandalaui.bind.Element;
import de.mhus.lib.MXml;

public abstract class Response {

	public void containerEnter(Component component, Object ... infos) {
		
	}

	public void containerLeave() {
		
	}

	public abstract void line(String line);
	
	public abstract void startTag(String name, String clazz, Styleable item, String ... attributes);

	public abstract void endTag(String name);

	public abstract void append(String text);

	public abstract void registerAttribute(Element value);

	public void appendText(String label) {
		append(MXml.encode(label));
	}

	public void lineText(String label) {
		line(MXml.encode(label));
	}
	
}
